<script setup>
// import { onMounted } from "vue";

// onMounted(() => {
//   if (process.client) {
//     if ("serviceWorker" in navigator) {
//       navigator.serviceWorker
//         .register("/sw.js")
//         .then((registration) => {
//           console.log("Service Worker registered successfully:", registration);
//           // 安装
//         })
//         .catch((error) => {
//           console.log("Service Worker registration failed:", error);
//         });
//     }
//   }
// });
</script>
<template>
  <div style="box-sizing: border-box; width: 100%; height: 100%; padding: 0; margin: 0;">
    <NuxtRouteAnnouncer />
    <NuxtPage />
  </div>
</template>
<style>
@import url("index.css");

@tailwind base;
@tailwind components;
@tailwind utilities;
</style>
